Try to not allocate when decoding registry json
authorAlex Crichton <alex@alexcrichton.com>
Fri, 2 Jun 2017 14:00:17 +0000 (07:00 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 5 Jun 2017 14:36:44 +0000 (07:36 -0700)
commit337359afdf0a561eaa5826a4e09df5aa8b78a99f
tree4e26aa5bae7aa986c4e960ec33cc5432651a9abc
parente8b30f30094937e8628e9f5cb732904fa07d45c8
Try to not allocate when decoding registry json

There's a few keys we don't need owned versions of, so try using Serde's
zero-copy deserialization where we can.
src/cargo/sources/registry/mod.rs